# import pytest
# from requests import Response
# from pytest_yaml_yoyo import my_builtins
#
# """
# fixtures 激活2钟方式
# - autouse = True
# - 用例传参激活
# """
#
#
# @pytest.fixture()
# def yaml_fixture():
#     print("用例的前置操作--------")
#     yield
#     print("用例的后置操作--------")
#
#
# @pytest.fixture()
# def fix2():
#     print("第二个fixtures")
#
#
# # module级别整个yaml文件只会执行一次
# @pytest.fixture(scope="module")
# def only_one():
#     print("仅一次执行")
#
#
# def response_code(response: Response, *args, **kwargs):
#     """响应 预处理 hook功能"""
#     print(f"响应的url：{response.url}")
#     response.status_code = 400
#
#
# my_builtins.response_code = response_code
